subscribe

public final static Subscription subscribe<E extends Event>(Observable<? super E> $self, Observer<E> observer)
public final static Subscription subscribe<E extends Event>(Observable<? super E> $self, Observer<E> observer)

Subscribes the given observer to receive events of type E from this Observable.

The method does nothing if the given observer has already been subscribed. In this case, the previously created Subscription is returned.

The order in which notifications are delivered to observers is not specified.

Return

a reference with which subscribers can unsubscribe.

Since

8.0.0